package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJTEmerGasStationRowMapper implements RowMapper<XJTEmerGasStation>{


	@Override
	public XJTEmerGasStation mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJTEmerGasStation  lj= new XJTEmerGasStation();
		lj.setId(rs.getInt("id"));
		lj.setDuty_dept(rs.getString("duty_dept"));
		lj.setGas_station_name(rs.getString("gas_station_name"));


		lj.setContactor(rs.getString("contactor"));
		lj.setPhone(rs.getString("phone"));
		lj.setTel(rs.getString("tel"));
		lj.setLng(rs.getString("lng"));
		lj.setLat(rs.getString("lat"));
		lj.setSite(rs.getString("site"));
		lj.setArea(rs.getString("area"));
		lj.setPerson_num(rs.getInt("person_num"));
		lj.setRemark(rs.getString("remark"));

		return lj;
	}

}
